* RMatch1935y2001control.sps.
* Match patients with teeth filled in March 2000 against other
* teeth treated in year ending March 2001.
* Written by PSKL on 28/11/01.
* Amended on 17/02/03.

* Restrict March 2000 data to fillings.

get file = 'D:\PSKL\Rteeth193510003to10103.sav'.

select if ( fsched = 10003).

select if ( any( trtcode, 1401,1402,1403,1404,1421,1426)).

* save master file of filled teeth (temp1).

Compute Fillrec=1.

save outfile='c:\temp1.sav'.

get file='c:\temp1.sav'.

* save look-up table, one record for each tooth, for matching (temp2).

Compute Filled=1.

sort cases by surname initial sex dobirth tooth quadrant doacc docomp.

Aggregate outfile=* /presorted
 /break surname initial sex dobirth tooth quadrant
 /filled =max(filled)
 /dofacc dofcomp=first(doacc docomp).

save outfile= 'c:\temp2.sav'
 / keep surname initial sex dobirth tooth quadrant filled dofacc dofcomp.

* Create lookup file of patients who have had fillings in March 2000 (temp2A).
* This file contains a dummy quadrant to indicate that at least one tooth in
* the tooth position has been filled.

Aggregate outfile=*/presorted
 /break surname initial sex dobirth tooth
 /dofacc dofcomp=first(dofacc dofcomp).
compute doacc=dofacc.
compute docomp=dofcomp.

string quadrant (A2).
compute quadrant='AA'.

compute fillrec=-1.

save outfile='c:\temp2a.sav'.


* Match against quadrant records for next year, but exclude correction records.

get file = 'D:\PSKL\Rteeth193510003to10103.sav'.

sort cases by surname initial sex dobirth tooth quadrant doacc.

Match files file=*
 /table 'c:\temp2a.sav'
 /by surname initial sex dobirth tooth.

Execute.

select if (not(missing(dofacc)) and not(dofacc=doacc)).

Compute fillrec=0.

Execute.

* Remove quadrants which had fillings in March 2000.

Match files file=*
 /table='c:\temp2.sav'
 /by surname initial sex dobirth tooth quadrant.

If (missing(filled)) filled=0.
select if (filled=0).

Execute.

* Combine with March 2000 dummy quadrant records, when patients received fillings
 in at least one quadrant, to get dates of March 2000 courses of treatment.

Add files file= 'C:\temp2a.sav'
 /file *
 /by surname initial sex dobirth tooth quadrant fillrec.

* Remove additional fee records.

If (missing(trtcode)) trtcode=0.
select if not (range(trtcode,1431,1431,1422,1425,1541,1541,
   1732,1739,1811,1816,2746,2746,5825,5825)).

save outfile='c:\temp3.sav'.

get file='c:\temp3.sav'.

* Reduce to file of teeth not filled in March 2000 schedule but
* where other teeth in the same position were treated then, but treated in following year,
* supplemented by time to failure and
* replacement treatment.

sort cases by surname initial sex dobirth tooth quadrant fillrec doacc trtcode.

aggregate outfile=*
 /presorted
 /break surname initial sex dobirth tooth quadrant fillrec doacc
 / fpcnum persnum partnum suffix postcode docomp exempbox
   trtcode quadcode toothpat exempcod =
 first(fpcnum persnum partnum suffix postcode docomp exempbox
   trtcode quadcode toothpat exempcod)
 /t1=first(trtcode)
 /t2=sum(trtcode)
 /t3=last(trtcode)
 /treats=n.

EXECUTE.

* Calculate time lag for each replacement treatment - up to three per patient.
Do if (fillrec=0 and lag(fillrec)=-1).
compute time=ctime.days(doacc-lag(docomp)).
compute reptrt1=t1.
if (treats=2) reptrt2=t3.
if (treats=3) reptrt2=t2-t1-t3.
if (treats=3) reptrt3=t3.
Compute reptreat=reptrt1.
If (treats>1) reptreat=9999.
End if.

Do if (fillrec=0 and lag(fillrec,2)=-1).
compute time=ctime.days(doacc-lag(docomp,2)).
compute reptrt1=t1.
if (treats=2) reptrt2=t3.
if (treats=3) reptrt2=t2-t1-t3.
if (treats=3) reptrt3=t3.
Compute reptreat=reptrt1.
If (treats>1) reptreat=9999.
End if.

Do if (fillrec=0 and not(lag(fillrec))=-1 and lag(fillrec,3)=-1).
compute time=ctime.days(doacc-lag(docomp,3)).
compute reptrt1=t1.
if (treats=2) reptrt2=t3.
if (treats=3) reptrt2=t2-t1-t3.
if (treats=3) reptrt3=t3.
Compute reptreat=reptrt1.
If (treats>1) reptreat=9999.
End if.

formats trtcode reptreat (f4.0).
formats trtcode reptreat (f4.0) tooth (f1.0).

EXECUTE.

* Tidy up the remaining anomalies.
* Assume negative time cases reflect claims out of sequence.
* Censor all cases at 365 days.
Compute failed=0.
Do if (range(time,1,365)).
compute failed=1.
else.
compute time=365.
end if.
If (missing(time))time=365.

EXECUTE.

* Reduce to one record, for the first retreatment,
* for each quadrant for which the tooth was not treated in March 2000,
* including a dummy quadrant record if the tooth was not retreated.

sort cases by surname initial sex dobirth tooth quadrant time.

Aggregate outfile=* /presorted
 /break surname initial sex dobirth tooth quadrant
 / doacc fpcnum persnum partnum suffix postcode docomp
   exempbox trtcode exempcod time reptreat reptrt1 reptrt2 reptrt3 failed
 =first(doacc fpcnum persnum partnum suffix postcode docomp
   exempbox trtcode exempcod time reptreat reptrt1 reptrt2 reptrt3 failed).

save outfile='D:\pskl\RMatch1935y2001control.sav'.

Get file='D:\pskl\RMatch1935y2001control.sav'.


* Produce some tables.

* a) Proportion of early failures, by tooth position, quadrant, type of filling, and patient sex.

Compute failedPC=100*failed.

autorecode VARIABLES= quadrant sex
 /INTO quadn sexn.

Value Labels
 Tooth TRTCODE
1 '1'
2 '2'
3 '3'
4 '4'
5 '5'
6 '6'
7 '7'
8 '8'
1401 '1401'
1402 '1402'
1403 '1403'
1404 '1404'
1421 '1421'
1426 '1426'.

Variable Labels Tooth 'Tooth Position'
 /quadrant quadn 'Quadrant'
 /trtcode 'Treatment Code'.

Temporary.
select if (any(quadrant,'LL','AA')).

* Basic Tables.
TABLES
  /FORMAT BLANK MISSING('.')
  /OBSERVATION failedpc
  /FTOTAL $t 'Summary'
  /TABLES (sexn > failedpc +  $t )
  BY (tooth +  $t )
  BY ((STATISTICS))
  /STATISTICS
  mean( (PCT7.2 ))
  count( ( COMMA7.0 )) /TITLE  'Retreatment rates by tooth'+
 ' position and patient sex - LL Quadrant'.

Tables

Notes
Output Created 17-FEB-2003 17:50:15
Comments
Input Data D:\pskl\RMatch1935y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 14095
Syntax TABLES
/FORMAT BLANK MISSING('.')
/OBSERVATION failedpc
/FTOTAL $t 'Summary'
/TABLES (sexn > failedpc + $t )
BY (tooth + $t )
BY ((STATISTICS))
/STATISTICS
mean( (PCT7.2 ))
count( ( COMMA7.0 )) /TITLE 'Retreatment rates by tooth'+
' position and patient sex - LL Quadrant'.
Resources Elapsed Time 0:00:00.91


Retreatment rates by tooth position and patient sex - LL Quadrant
Mean

Tooth Position Summary
1 2 3 4 5 6 7 8
F
2.74% 2.37% 2.69% 2.37% 2.60% 2.52% 3.33% 2.46% 2.66%
M
2.42% 1.60% 2.51% 3.53% 3.19% 3.40% 2.51% 1.64% 2.74%
Summary 2.58% 1.95% 2.59% 3.03% 2.92% 2.97% 2.90% 1.96% 2.70%

Retreatment rates by tooth position and patient sex - LL Quadrant
Count

Tooth Position Summary
1 2 3 4 5 6 7 8
F
766 674 930 929 924 993 962 285 6,463
M
826 812 1,117 1,219 1,097 1,059 1,074 428 7,632
Summary 1,592 1,486 2,047 2,148 2,021 2,052 2,036 713 14,095

Temporary.
select if (any(quadrant,'LR','AA')).

* Basic Tables.
TABLES
  /FORMAT BLANK MISSING('.')
  /OBSERVATION failedpc
  /FTOTAL $t 'Summary'
  /TABLES (sexn > failedpc +  $t )
  BY (tooth +  $t )
  BY ((STATISTICS))
  /STATISTICS
  mean( (PCT7.2 ))
  count( ( COMMA7.0 )) /TITLE  'Retreatment rates by tooth'+
 ' position and patient sex - LR Quadrant'.

Tables

Notes
Output Created 17-FEB-2003 17:50:16
Comments
Input Data D:\pskl\RMatch1935y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 14094
Syntax TABLES
/FORMAT BLANK MISSING('.')
/OBSERVATION failedpc
/FTOTAL $t 'Summary'
/TABLES (sexn > failedpc + $t )
BY (tooth + $t )
BY ((STATISTICS))
/STATISTICS
mean( (PCT7.2 ))
count( ( COMMA7.0 )) /TITLE 'Retreatment rates by tooth'+
' position and patient sex - LR Quadrant'.
Resources Elapsed Time 0:00:00.59


Retreatment rates by tooth position and patient sex - LR Quadrant
Mean

Tooth Position Summary
1 2 3 4 5 6 7 8
F
2.49% 2.23% 2.38% 3.21% 2.93% 2.32% 4.02% .71% 2.74%
M
2.54% 2.32% 2.85% 2.72% 3.02% 2.66% 3.51% 1.18% 2.74%
Summary 2.52% 2.28% 2.64% 2.93% 2.98% 2.50% 3.75% .99% 2.74%

Retreatment rates by tooth position and patient sex - LR Quadrant
Count

Tooth Position Summary
1 2 3 4 5 6 7 8
F
762 673 926 936 921 992 969 280 6,459
M
827 819 1,122 1,212 1,094 1,052 1,084 425 7,635
Summary 1,589 1,492 2,048 2,148 2,015 2,044 2,053 705 14,094

.

Temporary.
select if (any(quadrant,'UL','AA')).

* Basic Tables.
TABLES
  /FORMAT BLANK MISSING('.')
  /OBSERVATION failedpc
  /FTOTAL $t 'Summary'
  /TABLES (sexn > failedpc +  $t )
  BY (tooth +  $t )
  BY ((STATISTICS))
  /STATISTICS
  mean( (PCT7.2 ))
  count( ( COMMA7.0 )) /TITLE  'Retreatment rates by tooth'+
 ' position and patient sex - UL Quadrant'.

Tables

Notes
Output Created 17-FEB-2003 17:50:16
Comments
Input Data D:\pskl\RMatch1935y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 14244
Syntax TABLES
/FORMAT BLANK MISSING('.')
/OBSERVATION failedpc
/FTOTAL $t 'Summary'
/TABLES (sexn > failedpc + $t )
BY (tooth + $t )
BY ((STATISTICS))
/STATISTICS
mean( (PCT7.2 ))
count( ( COMMA7.0 )) /TITLE 'Retreatment rates by tooth'+
' position and patient sex - UL Quadrant'.
Resources Elapsed Time 0:00:00.86


Retreatment rates by tooth position and patient sex - UL Quadrant
Mean

Tooth Position Summary
1 2 3 4 5 6 7 8
F
4.86% 3.09% 4.12% 3.50% 3.02% 3.95% 2.11% .36% 3.38%
M
4.38% 3.36% 4.20% 3.67% 4.25% 3.86% 3.42% 1.87% 3.77%
Summary 4.61% 3.24% 4.17% 3.60% 3.69% 3.90% 2.81% 1.27% 3.59%

Retreatment rates by tooth position and patient sex - UL Quadrant
Count

Tooth Position Summary
1 2 3 4 5 6 7 8
F
782 680 946 942 926 1,012 950 279 6,517
M
845 833 1,142 1,227 1,107 1,063 1,082 428 7,727
Summary 1,627 1,513 2,088 2,169 2,033 2,075 2,032 707 14,244

Temporary.
select if (any(quadrant,'UR','AA')).

* Basic Tables.
TABLES
  /FORMAT BLANK MISSING('.')
  /OBSERVATION failedpc
  /FTOTAL $t 'Summary'
  /TABLES (sexn > failedpc +  $t )
  BY (tooth +  $t )
  BY ((STATISTICS))
  /STATISTICS
  mean( (PCT7.2 ))
  count( ( COMMA7.0 )) /TITLE  'Retreatment rates by tooth'+
 ' position and patient sex - UR Quadrant'.

Tables

Notes
Output Created 17-FEB-2003 17:50:17
Comments
Input Data D:\pskl\RMatch1935y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 14260
Syntax TABLES
/FORMAT BLANK MISSING('.')
/OBSERVATION failedpc
/FTOTAL $t 'Summary'
/TABLES (sexn > failedpc + $t )
BY (tooth + $t )
BY ((STATISTICS))
/STATISTICS
mean( (PCT7.2 ))
count( ( COMMA7.0 )) /TITLE 'Retreatment rates by tooth'+
' position and patient sex - UR Quadrant'.
Resources Elapsed Time 0:00:00.88


Retreatment rates by tooth position and patient sex - UR Quadrant
Mean

Tooth Position Summary
1 2 3 4 5 6 7 8
F
3.49% 3.22% 3.71% 3.50% 2.71% 4.13% 3.42% 2.11% 3.41%
M
5.37% 4.07% 5.48% 3.28% 3.28% 2.30% 2.96% .71% 3.61%
Summary 4.48% 3.69% 4.69% 3.38% 3.02% 3.20% 3.18% 1.27% 3.52%

Retreatment rates by tooth position and patient sex - UR Quadrant
Count

Tooth Position Summary
1 2 3 4 5 6 7 8
F
774 684 944 942 924 1,017 964 285 6,534
M
856 835 1,167 1,220 1,099 1,045 1,080 424 7,726
Summary 1,630 1,519 2,111 2,162 2,023 2,062 2,044 709 14,260

* b) Replacement treatment , by quadrant.

string retcomb (a14).
compute retcomb=concat(string( reptrt1,f4),'/',string( reptrt2,f4),'/',string( reptrt3,f4)).

Variable Labels retcomb 'Retreatment combination'.

execute.

temporary.
select if ( failed=1).

CROSSTABS
  /TABLES=retcomb  BY quadrant  BY tooth
  /FORMAT= AVALUE TABLES
  /CELLS= COUNT COLUMN .

Crosstabs

Notes
Output Created 17-FEB-2003 17:50:19
Comments
Input Data D:\pskl\RMatch1935y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 1780
Missing Value Handling Definition of Missing User-defined missing values are treated as missing.
Cases Used Statistics for each table are based on all the cases with valid data in the specified range(s) for all variables in each table.
Syntax CROSSTABS
/TABLES=retcomb BY quadrant BY tooth
/FORMAT= AVALUE TABLES
/CELLS= COUNT COLUMN .
Resources Dimensions Requested 3
Cells Available 80659
Elapsed Time 0:00:00.76

Case Processing Summary

Cases
Valid Missing Total
N Percent N Percent N Percent
Retreatment combination * quadn 'Quadrant' * Tooth Position 1780 100.0% 0 .0% 1780 100.0%


Retreatment combination * quadn 'Quadrant' * Tooth Position Crosstabulation

quadn 'Quadrant' Total
Tooth Position LL LR UL UR
1 Retreatment combination 1131/1807/ . Count


1 1
% within quadn 'Quadrant'


1.4% .4%
1401/ ./ . Count 1

1 2
% within quadn 'Quadrant' 2.4%

1.4% .9%
1421/ ./ . Count 20 23 36 35 114
% within quadn 'Quadrant' 48.8% 57.5% 48.0% 47.9% 49.8%
1421/1501/ . Count 2
2 1 5
% within quadn 'Quadrant' 4.9%
2.7% 1.4% 2.2%
1421/2863/ . Count 1


1
% within quadn 'Quadrant' 2.4%


.4%
1426/ ./ . Count 6 3 5 9 23
% within quadn 'Quadrant' 14.6% 7.5% 6.7% 12.3% 10.0%
1501/1721/ . Count

2
2
% within quadn 'Quadrant'

2.7%
.9%
1721/ ./ . Count
1 3 3 7
% within quadn 'Quadrant'
2.5% 4.0% 4.1% 3.1%
1722/ ./ . Count

1 1 2
% within quadn 'Quadrant'

1.3% 1.4% .9%
1781/ ./ . Count

1 1 2
% within quadn 'Quadrant'

1.3% 1.4% .9%
1782/ ./ . Count

3
3
% within quadn 'Quadrant'

4.0%
1.3%
2101/ ./ . Count 1 3 1 1 6
% within quadn 'Quadrant' 2.4% 7.5% 1.3% 1.4% 2.6%
2101/2733/ . Count

2 1 3
% within quadn 'Quadrant'

2.7% 1.4% 1.3%
2101/2745/ . Count 1


1
% within quadn 'Quadrant' 2.4%


.4%
2101/2863/ . Count
4 4 4 12
% within quadn 'Quadrant'
10.0% 5.3% 5.5% 5.2%
2201/2733/ . Count 1 1

2
% within quadn 'Quadrant' 2.4% 2.5%

.9%
2733/ ./ . Count 2 4 9 10 25
% within quadn 'Quadrant' 4.9% 10.0% 12.0% 13.7% 10.9%
2743/ ./ . Count

3
3
% within quadn 'Quadrant'

4.0%
1.3%
2744/ ./ . Count 1

1 2
% within quadn 'Quadrant' 2.4%

1.4% .9%
2745/ ./ . Count

1
1
% within quadn 'Quadrant'

1.3%
.4%
2863/ ./ . Count 2 1

3
% within quadn 'Quadrant' 4.9% 2.5%

1.3%
3611/ ./ . Count 3
2 3 8
% within quadn 'Quadrant' 7.3%
2.7% 4.1% 3.5%
5112/ ./ . Count


1 1
% within quadn 'Quadrant'


1.4% .4%
Total Count 41 40 75 73 229
% within quadn 'Quadrant' 100.0% 100.0% 100.0% 100.0% 100.0%
2 Retreatment combination 1421/ ./ . Count 12 16 16 22 66
% within quadn 'Quadrant' 41.4% 47.1% 32.7% 39.3% 39.3%
1421/1501/ . Count
1
2 3
% within quadn 'Quadrant'
2.9%
3.6% 1.8%
1421/1782/ . Count


1 1
% within quadn 'Quadrant'


1.8% .6%
1426/ ./ . Count 3 4 1 5 13
% within quadn 'Quadrant' 10.3% 11.8% 2.0% 8.9% 7.7%
1426/2863/ . Count 1


1
% within quadn 'Quadrant' 3.4%


.6%
1501/ ./ . Count


1 1
% within quadn 'Quadrant'


1.8% .6%
1501/1721/ . Count


1 1
% within quadn 'Quadrant'


1.8% .6%
1721/ ./ . Count

5 4 9
% within quadn 'Quadrant'

10.2% 7.1% 5.4%
1781/ ./ . Count

1
1
% within quadn 'Quadrant'

2.0%
.6%
1782/ ./ . Count 1 3 6 2 12
% within quadn 'Quadrant' 3.4% 8.8% 12.2% 3.6% 7.1%
1807/ ./ . Count 1


1
% within quadn 'Quadrant' 3.4%


.6%
1825/ ./ . Count


1 1
% within quadn 'Quadrant'


1.8% .6%
1831/ ./ . Count
1

1
% within quadn 'Quadrant'
2.9%

.6%
1832/ ./ . Count


1 1
% within quadn 'Quadrant'


1.8% .6%
2101/ ./ . Count 3 1 1 2 7
% within quadn 'Quadrant' 10.3% 2.9% 2.0% 3.6% 4.2%
2101/2733/ . Count 1 2 3 1 7
% within quadn 'Quadrant' 3.4% 5.9% 6.1% 1.8% 4.2%
2101/2863/ . Count 1
1 1 3
% within quadn 'Quadrant' 3.4%
2.0% 1.8% 1.8%
2201/2733/ . Count 1 1

2
% within quadn 'Quadrant' 3.4% 2.9%

1.2%
2733/ ./ . Count 3 4 12 7 26
% within quadn 'Quadrant' 10.3% 11.8% 24.5% 12.5% 15.5%
2745/ ./ . Count

1 1 2
% within quadn 'Quadrant'

2.0% 1.8% 1.2%
2863/ ./ . Count 1

1 2
% within quadn 'Quadrant' 3.4%

1.8% 1.2%
3611/ ./ . Count 1 1 1 2 5
% within quadn 'Quadrant' 3.4% 2.9% 2.0% 3.6% 3.0%
5031/ ./ . Count


1 1
% within quadn 'Quadrant'


1.8% .6%
5821/ ./ . Count

1
1
% within quadn 'Quadrant'

2.0%
.6%
Total Count 29 34 49 56 168
% within quadn 'Quadrant' 100.0% 100.0% 100.0% 100.0% 100.0%
3 Retreatment combination 1131/1501/1807 Count


1 1
% within quadn 'Quadrant'


1.0% .3%
1401/ ./ . Count 2

4 6
% within quadn 'Quadrant' 3.8%

4.0% 2.0%
1402/ ./ . Count

1 1 2
% within quadn 'Quadrant'

1.1% 1.0% .7%
1421/ ./ . Count 23 24 38 45 130
% within quadn 'Quadrant' 43.4% 44.4% 43.7% 45.5% 44.4%
1421/1501/ . Count
3 3 1 7
% within quadn 'Quadrant'
5.6% 3.4% 1.0% 2.4%
1421/2733/ . Count

1
1
% within quadn 'Quadrant'

1.1%
.3%
1426/ ./ . Count 11 12 13 10 46
% within quadn 'Quadrant' 20.8% 22.2% 14.9% 10.1% 15.7%
1426/1501/ . Count
1

1
% within quadn 'Quadrant'
1.9%

.3%
1426/2733/ . Count

1
1
% within quadn 'Quadrant'

1.1%
.3%
1426/2745/ . Count 1 1

2
% within quadn 'Quadrant' 1.9% 1.9%

.7%
1501/ ./ . Count

1
1
% within quadn 'Quadrant'

1.1%
.3%
1501/1721/ . Count

1
1
% within quadn 'Quadrant'

1.1%
.3%
1721/ ./ . Count 1 3
4 8
% within quadn 'Quadrant' 1.9% 5.6%
4.0% 2.7%
1782/ ./ . Count 2
5 9 16
% within quadn 'Quadrant' 3.8%
5.7% 9.1% 5.5%
1782/1782/ . Count

1
1
% within quadn 'Quadrant'

1.1%
.3%
1782/3611/ . Count

1
1
% within quadn 'Quadrant'

1.1%
.3%
1807/ ./ . Count

2 1 3
% within quadn 'Quadrant'

2.3% 1.0% 1.0%
1831/ ./ . Count


1 1
% within quadn 'Quadrant'


1.0% .3%
2101/ ./ . Count 1 2 2 1 6
% within quadn 'Quadrant' 1.9% 3.7% 2.3% 1.0% 2.0%
2101/2733/ . Count 1 1 2 1 5
% within quadn 'Quadrant' 1.9% 1.9% 2.3% 1.0% 1.7%
2101/2863/ . Count 1 1 2 1 5
% within quadn 'Quadrant' 1.9% 1.9% 2.3% 1.0% 1.7%
2201/ ./ . Count
1

1
% within quadn 'Quadrant'
1.9%

.3%
2201/2733/ . Count


1 1
% within quadn 'Quadrant'


1.0% .3%
2201/2863/ . Count 1

1 2
% within quadn 'Quadrant' 1.9%

1.0% .7%
2202/ ./ . Count 1 1 1
3
% within quadn 'Quadrant' 1.9% 1.9% 1.1%
1.0%
2202/2863/ . Count

1
1
% within quadn 'Quadrant'

1.1%
.3%
2733/ ./ . Count 5 2 7 11 25
% within quadn 'Quadrant' 9.4% 3.7% 8.0% 11.1% 8.5%
2743/ ./ . Count

1
1
% within quadn 'Quadrant'

1.1%
.3%
2745/ ./ . Count
1 1
2
% within quadn 'Quadrant'
1.9% 1.1%
.7%
2863/ ./ . Count 2
1 1 4
% within quadn 'Quadrant' 3.8%
1.1% 1.0% 1.4%
2863/3661/ . Count

1
1
% within quadn 'Quadrant'

1.1%
.3%
2863/3671/ . Count


1 1
% within quadn 'Quadrant'


1.0% .3%
3611/ ./ . Count 1 1
3 5
% within quadn 'Quadrant' 1.9% 1.9%
3.0% 1.7%
3671/ ./ . Count


1 1
% within quadn 'Quadrant'


1.0% .3%
Total Count 53 54 87 99 293
% within quadn 'Quadrant' 100.0% 100.0% 100.0% 100.0% 100.0%
4 Retreatment combination 1131/1421/ . Count 1


1
% within quadn 'Quadrant' 1.5%


.4%
1401/ ./ . Count 4 1 2
7
% within quadn 'Quadrant' 6.2% 1.6% 2.6%
2.5%
1401/1501/ . Count
1
1 2
% within quadn 'Quadrant'
1.6%
1.4% .7%
1403/ ./ . Count 11 10 12 5 38
% within quadn 'Quadrant' 16.9% 15.9% 15.4% 6.8% 13.6%
1403/1421/ . Count
1

1
% within quadn 'Quadrant'
1.6%

.4%
1403/1426/ . Count 1


1
% within quadn 'Quadrant' 1.5%


.4%
1403/1501/ . Count


1 1
% within quadn 'Quadrant'


1.4% .4%
1404/ ./ . Count 3
5 7 15
% within quadn 'Quadrant' 4.6%
6.4% 9.6% 5.4%
1404/2863/ . Count

1
1
% within quadn 'Quadrant'

1.3%
.4%
1421/ ./ . Count 18 15 11 10 54
% within quadn 'Quadrant' 27.7% 23.8% 14.1% 13.7% 19.4%
1426/ ./ . Count 8 13 8 8 37
% within quadn 'Quadrant' 12.3% 20.6% 10.3% 11.0% 13.3%
1426/1782/ . Count

1
1
% within quadn 'Quadrant'

1.3%
.4%
1461/ ./ . Count

1 1 2
% within quadn 'Quadrant'

1.3% 1.4% .7%
1501/ ./ . Count
1 1
2
% within quadn 'Quadrant'
1.6% 1.3%
.7%
1501/1721/ . Count

1 1 2
% within quadn 'Quadrant'

1.3% 1.4% .7%
1501/1722/ . Count
1

1
% within quadn 'Quadrant'
1.6%

.4%
1721/ ./ . Count 2 1 4 2 9
% within quadn 'Quadrant' 3.1% 1.6% 5.1% 2.7% 3.2%
1722/ ./ . Count
1
1 2
% within quadn 'Quadrant'
1.6%
1.4% .7%
1782/ ./ . Count 3 2 1 2 8
% within quadn 'Quadrant' 4.6% 3.2% 1.3% 2.7% 2.9%
1782/2863/ . Count

1
1
% within quadn 'Quadrant'

1.3%
.4%
1825/ ./ . Count


1 1
% within quadn 'Quadrant'


1.4% .4%
1826/2203/ . Count

1
1
% within quadn 'Quadrant'

1.3%
.4%
2101/ ./ . Count 3 1 2 6 12
% within quadn 'Quadrant' 4.6% 1.6% 2.6% 8.2% 4.3%
2101/2733/ . Count
1 1 1 3
% within quadn 'Quadrant'
1.6% 1.3% 1.4% 1.1%
2101/2745/ . Count


1 1
% within quadn 'Quadrant'


1.4% .4%
2101/2863/ . Count
3 1
4
% within quadn 'Quadrant'
4.8% 1.3%
1.4%
2201/ ./ . Count

1
1
% within quadn 'Quadrant'

1.3%
.4%
2201/6351/ . Count

1
1
% within quadn 'Quadrant'

1.3%
.4%
2203/ ./ . Count 1


1
% within quadn 'Quadrant' 1.5%


.4%
2733/ ./ . Count 6 5 14 18 43
% within quadn 'Quadrant' 9.2% 7.9% 17.9% 24.7% 15.4%
2743/ ./ . Count

3 1 4
% within quadn 'Quadrant'

3.8% 1.4% 1.4%
2744/ ./ . Count 1 3 2 1 7
% within quadn 'Quadrant' 1.5% 4.8% 2.6% 1.4% 2.5%
2745/ ./ . Count 2 1

3
% within quadn 'Quadrant' 3.1% 1.6%

1.1%
2863/ ./ . Count

1 1 2
% within quadn 'Quadrant'

1.3% 1.4% .7%
3611/ ./ . Count 1 2 1 2 6
% within quadn 'Quadrant' 1.5% 3.2% 1.3% 2.7% 2.2%
5813/5831/ . Count


1 1
% within quadn 'Quadrant'


1.4% .4%
5826/ ./ . Count

1
1
% within quadn 'Quadrant'

1.3%
.4%
6241/ ./ . Count


1 1
% within quadn 'Quadrant'


1.4% .4%
Total Count 65 63 78 73 279
% within quadn 'Quadrant' 100.0% 100.0% 100.0% 100.0% 100.0%
5 Retreatment combination 1131/1721/ . Count
1

1
% within quadn 'Quadrant'
1.7%

.4%
1131/1721/1782 Count

1
1
% within quadn 'Quadrant'

1.3%
.4%
1401/ ./ . Count 2 4 2 1 9
% within quadn 'Quadrant' 3.4% 6.7% 2.7% 1.6% 3.5%
1401/1421/ . Count 1


1
% within quadn 'Quadrant' 1.7%


.4%
1401/1501/ . Count
1 1 1 3
% within quadn 'Quadrant'
1.7% 1.3% 1.6% 1.2%
1402/ ./ . Count
1
1 2
% within quadn 'Quadrant'
1.7%
1.6% .8%
1403/ ./ . Count 5 6 6 6 23
% within quadn 'Quadrant' 8.5% 10.0% 8.0% 9.8% 9.0%
1403/1501/ . Count 2


2
% within quadn 'Quadrant' 3.4%


.8%
1404/ ./ . Count 5 3 10 9 27
% within quadn 'Quadrant' 8.5% 5.0% 13.3% 14.8% 10.6%
1404/1421/ . Count
1

1
% within quadn 'Quadrant'
1.7%

.4%
1404/1501/ . Count

1 2 3
% within quadn 'Quadrant'

1.3% 3.3% 1.2%
1421/ ./ . Count 9 7 7 6 29
% within quadn 'Quadrant' 15.3% 11.7% 9.3% 9.8% 11.4%
1426/ ./ . Count 6 9 7 3 25
% within quadn 'Quadrant' 10.2% 15.0% 9.3% 4.9% 9.8%
1501/1721/ . Count
1
1 2
% within quadn 'Quadrant'
1.7%
1.6% .8%
1501/1722/ . Count
1

1
% within quadn 'Quadrant'
1.7%

.4%
1711/ ./ . Count
1

1
% within quadn 'Quadrant'
1.7%

.4%
1721/ ./ . Count 3 2 4 2 11
% within quadn 'Quadrant' 5.1% 3.3% 5.3% 3.3% 4.3%
1722/ ./ . Count

2
2
% within quadn 'Quadrant'

2.7%
.8%
1781/ ./ . Count 2


2
% within quadn 'Quadrant' 3.4%


.8%
1782/ ./ . Count 5 1 4 1 11
% within quadn 'Quadrant' 8.5% 1.7% 5.3% 1.6% 4.3%
1807/ ./ . Count 1

1 2
% within quadn 'Quadrant' 1.7%

1.6% .8%
2101/ ./ . Count 2 4 2 2 10
% within quadn 'Quadrant' 3.4% 6.7% 2.7% 3.3% 3.9%
2101/2863/ . Count 1
1 2 4
% within quadn 'Quadrant' 1.7%
1.3% 3.3% 1.6%
2101/2863/6301 Count

1
1
% within quadn 'Quadrant'

1.3%
.4%
2201/ ./ . Count

1
1
% within quadn 'Quadrant'

1.3%
.4%
2203/ ./ . Count


1 1
% within quadn 'Quadrant'


1.6% .4%
2733/ ./ . Count 9 9 18 17 53
% within quadn 'Quadrant' 15.3% 15.0% 24.0% 27.9% 20.8%
2743/ ./ . Count 1 1 2
4
% within quadn 'Quadrant' 1.7% 1.7% 2.7%
1.6%
2744/ ./ . Count 1 3 2 1 7
% within quadn 'Quadrant' 1.7% 5.0% 2.7% 1.6% 2.7%
2745/ ./ . Count 2 1 1 3 7
% within quadn 'Quadrant' 3.4% 1.7% 1.3% 4.9% 2.7%
3611/ ./ . Count 2 3 1 1 7
% within quadn 'Quadrant' 3.4% 5.0% 1.3% 1.6% 2.7%
6331/ ./ . Count

1
1
% within quadn 'Quadrant'

1.3%
.4%
Total Count 59 60 75 61 255
% within quadn 'Quadrant' 100.0% 100.0% 100.0% 100.0% 100.0%
6 Retreatment combination 1131/1402/3661 Count

1
1
% within quadn 'Quadrant'

1.2%
.4%
1401/ ./ . Count 2 2
3 7
% within quadn 'Quadrant' 3.3% 3.9%
4.5% 2.7%
1401/1501/ . Count 2 2 1
5
% within quadn 'Quadrant' 3.3% 3.9% 1.2%
1.9%
1402/ ./ . Count 1 1 2 4 8
% within quadn 'Quadrant' 1.6% 2.0% 2.5% 6.1% 3.1%
1402/1403/ . Count
1

1
% within quadn 'Quadrant'
2.0%

.4%
1403/ ./ . Count 18 9 18 11 56
% within quadn 'Quadrant' 29.5% 17.6% 22.2% 16.7% 21.6%
1404/ ./ . Count 4 8 4 6 22
% within quadn 'Quadrant' 6.6% 15.7% 4.9% 9.1% 8.5%
1404/1421/ . Count


1 1
% within quadn 'Quadrant'


1.5% .4%
1404/1501/ . Count
1

1
% within quadn 'Quadrant'
2.0%

.4%
1421/ ./ . Count 4 4 13 4 25
% within quadn 'Quadrant' 6.6% 7.8% 16.0% 6.1% 9.7%
1426/ ./ . Count 16 10 10 10 46
% within quadn 'Quadrant' 26.2% 19.6% 12.3% 15.2% 17.8%
1711/ ./ . Count 3 1
2 6
% within quadn 'Quadrant' 4.9% 2.0%
3.0% 2.3%
1712/ ./ . Count 1
2
3
% within quadn 'Quadrant' 1.6%
2.5%
1.2%
1771/ ./ . Count 1


1
% within quadn 'Quadrant' 1.6%


.4%
1781/ ./ . Count

1
1
% within quadn 'Quadrant'

1.2%
.4%
1782/ ./ . Count 2


2
% within quadn 'Quadrant' 3.3%


.8%
1825/ ./ . Count 1

1 2
% within quadn 'Quadrant' 1.6%

1.5% .8%
2101/ ./ . Count 1 3 6 3 13
% within quadn 'Quadrant' 1.6% 5.9% 7.4% 4.5% 5.0%
2101/2733/ . Count

1
1
% within quadn 'Quadrant'

1.2%
.4%
2101/2863/ . Count

2
2
% within quadn 'Quadrant'

2.5%
.8%
2201/ ./ . Count 1
2
3
% within quadn 'Quadrant' 1.6%
2.5%
1.2%
2203/ ./ . Count 1 2

3
% within quadn 'Quadrant' 1.6% 3.9%

1.2%
2733/ ./ . Count 2 4 12 19 37
% within quadn 'Quadrant' 3.3% 7.8% 14.8% 28.8% 14.3%
2745/ ./ . Count

2 2 4
% within quadn 'Quadrant'

2.5% 3.0% 1.5%
2863/ ./ . Count

1
1
% within quadn 'Quadrant'

1.2%
.4%
3611/ ./ . Count 1 3 2
6
% within quadn 'Quadrant' 1.6% 5.9% 2.5%
2.3%
6341/1501/ . Count

1
1
% within quadn 'Quadrant'

1.2%
.4%
Total Count 61 51 81 66 259
% within quadn 'Quadrant' 100.0% 100.0% 100.0% 100.0% 100.0%
7 Retreatment combination 1401/ ./ . Count 4 7 3 3 17
% within quadn 'Quadrant' 6.8% 9.1% 5.3% 4.6% 6.6%
1401/1403/ . Count
1

1
% within quadn 'Quadrant'
1.3%

.4%
1401/1501/ . Count

1
1
% within quadn 'Quadrant'

1.8%
.4%
1402/ ./ . Count 3 4 3 2 12
% within quadn 'Quadrant' 5.1% 5.2% 5.3% 3.1% 4.7%
1402/3661/ . Count


1 1
% within quadn 'Quadrant'


1.5% .4%
1403/ ./ . Count 12 26 15 18 71
% within quadn 'Quadrant' 20.3% 33.8% 26.3% 27.7% 27.5%
1404/ ./ . Count 4 9 7 6 26
% within quadn 'Quadrant' 6.8% 11.7% 12.3% 9.2% 10.1%
1404/1501/ . Count
1
1 2
% within quadn 'Quadrant'
1.3%
1.5% .8%
1421/ ./ . Count 6 5 2 2 15
% within quadn 'Quadrant' 10.2% 6.5% 3.5% 3.1% 5.8%
1426/ ./ . Count 11 8 4 10 33
% within quadn 'Quadrant' 18.6% 10.4% 7.0% 15.4% 12.8%
1426/1501/ . Count

1
1
% within quadn 'Quadrant'

1.8%
.4%
1501/1704/ . Count


1 1
% within quadn 'Quadrant'


1.5% .4%
1704/ ./ . Count
1
1 2
% within quadn 'Quadrant'
1.3%
1.5% .8%
1711/ ./ . Count 2 1
1 4
% within quadn 'Quadrant' 3.4% 1.3%
1.5% 1.6%
1781/ ./ . Count
1 1
2
% within quadn 'Quadrant'
1.3% 1.8%
.8%
1782/ ./ . Count 3
1 2 6
% within quadn 'Quadrant' 5.1%
1.8% 3.1% 2.3%
2101/ ./ . Count 4 4 7 4 19
% within quadn 'Quadrant' 6.8% 5.2% 12.3% 6.2% 7.4%
2101/2863/ . Count 1


1
% within quadn 'Quadrant' 1.7%


.4%
2201/ ./ . Count 1


1
% within quadn 'Quadrant' 1.7%


.4%
2201/6332/ . Count
1

1
% within quadn 'Quadrant'
1.3%

.4%
2203/ ./ . Count

1
1
% within quadn 'Quadrant'

1.8%
.4%
2733/ ./ . Count 2 3 6 9 20
% within quadn 'Quadrant' 3.4% 3.9% 10.5% 13.8% 7.8%
2743/ ./ . Count

1 1 2
% within quadn 'Quadrant'

1.8% 1.5% .8%
2744/ ./ . Count 2 1
1 4
% within quadn 'Quadrant' 3.4% 1.3%
1.5% 1.6%
2745/ ./ . Count
1 1 1 3
% within quadn 'Quadrant'
1.3% 1.8% 1.5% 1.2%
3611/ ./ . Count 4 3 1 1 9
% within quadn 'Quadrant' 6.8% 3.9% 1.8% 1.5% 3.5%
6301/ ./ . Count

1
1
% within quadn 'Quadrant'

1.8%
.4%
6341/1501/ . Count

1
1
% within quadn 'Quadrant'

1.8%
.4%
Total Count 59 77 57 65 258
% within quadn 'Quadrant' 100.0% 100.0% 100.0% 100.0% 100.0%
8 Retreatment combination 1401/ ./ . Count 4 3 1
8
% within quadn 'Quadrant' 28.6% 42.9% 11.1%
20.5%
1402/ ./ . Count 1
1 3 5
% within quadn 'Quadrant' 7.1%
11.1% 33.3% 12.8%
1403/ ./ . Count 4 2 1
7
% within quadn 'Quadrant' 28.6% 28.6% 11.1%
17.9%
1404/ ./ . Count 1
1 2 4
% within quadn 'Quadrant' 7.1%
11.1% 22.2% 10.3%
1421/ ./ . Count


1 1
% within quadn 'Quadrant'


11.1% 2.6%
1426/ ./ . Count 2 1 2 1 6
% within quadn 'Quadrant' 14.3% 14.3% 22.2% 11.1% 15.4%
1461/ ./ . Count 1 1 1
3
% within quadn 'Quadrant' 7.1% 14.3% 11.1%
7.7%
2101/ ./ . Count

1 2 3
% within quadn 'Quadrant'

11.1% 22.2% 7.7%
3611/ ./ . Count

1
1
% within quadn 'Quadrant'

11.1%
2.6%
5811/ ./ . Count 1


1
% within quadn 'Quadrant' 7.1%


2.6%
Total Count 14 7 9 9 39
% within quadn 'Quadrant' 100.0% 100.0% 100.0% 100.0% 100.0%

* c) Kaplan-Meier Survivor Functions and Hazard functions.

temporary.
select if (any(quadrant,'LL','AA')).
KM
  time  /STATUS=failed(1)
  /PRINT NONE
  /PLOT SURVIVAL.

Kaplan-Meier

Notes
Output Created 17-FEB-2003 17:50:20
Comments
Input Data D:\pskl\RMatch1935y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 14095
Syntax KM
time /STATUS=failed(1)
/PRINT NONE
/PLOT SURVIVAL.
Resources Elapsed Time 0:00:02.44

Survival

temporary.
select if (any(quadrant,'LR','AA')).
KM
  time  /STATUS=failed(1)
  /PRINT NONE
  /PLOT SURVIVAL.

Kaplan-Meier

Notes
Output Created 17-FEB-2003 17:50:23
Comments
Input Data D:\pskl\RMatch1935y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 14094
Syntax KM
time /STATUS=failed(1)
/PRINT NONE
/PLOT SURVIVAL.
Resources Elapsed Time 0:00:00.91

Survival

temporary.
select if (any(quadrant,'UL','AA')).
KM
  time  /STATUS=failed(1)
  /PRINT NONE
  /PLOT SURVIVAL.

Kaplan-Meier

Notes
Output Created 17-FEB-2003 17:50:24
Comments
Input Data D:\pskl\RMatch1935y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 14244
Syntax KM
time /STATUS=failed(1)
/PRINT NONE
/PLOT SURVIVAL.
Resources Elapsed Time 0:00:01.00

Survival

temporary.
select if (any(quadrant,'UR','AA')).
KM
  time  /STATUS=failed(1)
  /PRINT NONE
  /PLOT SURVIVAL.

Kaplan-Meier

Notes
Output Created 17-FEB-2003 17:50:25
Comments
Input Data D:\pskl\RMatch1935y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 14260
Syntax KM
time /STATUS=failed(1)
/PRINT NONE
/PLOT SURVIVAL.
Resources Elapsed Time 0:00:00.93

Survival

* Subdivide by tooth.

Get file='D:\pskl\RMatch1935y2001control.sav'.

select if (any(quadrant,'LL','AA')).
KM
  time  BY tooth  /STATUS=failed(1)
  /PRINT NONE
  /PLOT SURVIVAL
  /save Survival(survtoot).

Kaplan-Meier

Notes
Output Created 17-FEB-2003 17:50:26
Comments
Input Data D:\pskl\RMatch1935y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 14095
Syntax KM
time BY tooth /STATUS=failed(1)
/PRINT NONE
/PLOT SURVIVAL
/save Survival(survtoot).
Resources Elapsed Time 0:00:01.22

Survival

 Survival Analysis for TIME

                            Total        Number         Number          Percent
                                         Events        Censored        Censored

  TOOTH           1          1592            41           1551            97.42
  TOOTH           2          1486            29           1457            98.05
  TOOTH           3          2047            53           1994            97.41
  TOOTH           4          2148            65           2083            96.97
  TOOTH           5          2021            59           1962            97.08
  TOOTH           6          2052            61           1991            97.03
  TOOTH           7          2036            59           1977            97.10
  TOOTH           8           713            14            699            98.04

Overall                     14095           381          13714            97.30



* Create Excel file for plotting.

select if (failed=1).
sort cases by time tooth.

aggregate outfile=*
 /presorted
 /break time tooth
 /survtoot
  =first(survtoot)
 /n=n.

If (tooth=1) tooth1=survtoot.
If (tooth=2) tooth2=survtoot.
If (tooth=3) tooth3=survtoot.
If (tooth=4) tooth4=survtoot.
If (tooth=5) tooth5=survtoot.
If (tooth=6) tooth6=survtoot.
If (tooth=7) tooth7=survtoot.
If (tooth=8) tooth8=survtoot.

aggregate outfile=*
 /presorted
 /break time
 / tooth1 to tooth8
 = first(tooth1 to tooth8).

SAVE TRANSLATE OUTFILE='I:\Research Projects\longevity\early life 1935 control LL.xls'
  /TYPE=XLS /MAP /REPLACE /FIELDNAMES.

Data written to I:\Research Projects\longevity\early life 1935 control LL.xls.
9 variables and 219 cases written to range: SPSS.
Variable: TIME       Type: Number   Width:  8   Dec: 2
Variable: TOOTH1     Type: Number   Width:  8   Dec: 2
Variable: TOOTH2     Type: Number   Width:  8   Dec: 2
Variable: TOOTH3     Type: Number   Width:  8   Dec: 2
Variable: TOOTH4     Type: Number   Width:  8   Dec: 2
Variable: TOOTH5     Type: Number   Width:  8   Dec: 2
Variable: TOOTH6     Type: Number   Width:  8   Dec: 2
Variable: TOOTH7     Type: Number   Width:  8   Dec: 2
Variable: TOOTH8     Type: Number   Width:  8   Dec: 2






Get file='D:\pskl\RMatch1935y2001control.sav'.

select if (any(quadrant,'LR','AA')).
KM
  time  BY tooth  /STATUS=failed(1)
  /PRINT NONE
  /PLOT SURVIVAL
  /save Survival(survtoot).

Kaplan-Meier

Notes
Output Created 17-FEB-2003 17:50:35
Comments
Input Data D:\pskl\RMatch1935y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 14094
Syntax KM
time BY tooth /STATUS=failed(1)
/PRINT NONE
/PLOT SURVIVAL
/save Survival(survtoot).
Resources Elapsed Time 0:00:01.07

Survival

 Survival Analysis for TIME

                            Total        Number         Number          Percent
                                         Events        Censored        Censored

  TOOTH           1          1589            40           1549            97.48
  TOOTH           2          1492            34           1458            97.72
  TOOTH           3          2048            54           1994            97.36
  TOOTH           4          2148            63           2085            97.07
  TOOTH           5          2015            60           1955            97.02
  TOOTH           6          2044            51           1993            97.50
  TOOTH           7          2053            77           1976            96.25
  TOOTH           8           705             7            698            99.01

Overall                     14094           386          13708            97.26



* Create Excel file for plotting.

select if (failed=1).
sort cases by time tooth.

aggregate outfile=*
 /presorted
 /break time tooth
 /survtoot
  =first(survtoot)
 /n=n.

If (tooth=1) tooth1=survtoot.
If (tooth=2) tooth2=survtoot.
If (tooth=3) tooth3=survtoot.
If (tooth=4) tooth4=survtoot.
If (tooth=5) tooth5=survtoot.
If (tooth=6) tooth6=survtoot.
If (tooth=7) tooth7=survtoot.
If (tooth=8) tooth8=survtoot.

aggregate outfile=*
 /presorted
 /break time
 / tooth1 to tooth8
 = first(tooth1 to tooth8).

SAVE TRANSLATE OUTFILE='I:\Research Projects\longevity\early life 1935 control LR.xls'
  /TYPE=XLS /MAP /REPLACE /FIELDNAMES.

Data written to I:\Research Projects\longevity\early life 1935 control LR.xls.
9 variables and 214 cases written to range: SPSS.
Variable: TIME       Type: Number   Width:  8   Dec: 2
Variable: TOOTH1     Type: Number   Width:  8   Dec: 2
Variable: TOOTH2     Type: Number   Width:  8   Dec: 2
Variable: TOOTH3     Type: Number   Width:  8   Dec: 2
Variable: TOOTH4     Type: Number   Width:  8   Dec: 2
Variable: TOOTH5     Type: Number   Width:  8   Dec: 2
Variable: TOOTH6     Type: Number   Width:  8   Dec: 2
Variable: TOOTH7     Type: Number   Width:  8   Dec: 2
Variable: TOOTH8     Type: Number   Width:  8   Dec: 2









Get file='D:\pskl\RMatch1935y2001control.sav'.

select if (any(quadrant,'UL','AA')).
KM
  time  BY tooth  /STATUS=failed(1)
  /PRINT NONE
  /PLOT SURVIVAL
  /save Survival(survtoot).

Kaplan-Meier

Notes
Output Created 17-FEB-2003 17:50:38
Comments
Input Data D:\pskl\RMatch1935y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 14244
Syntax KM
time BY tooth /STATUS=failed(1)
/PRINT NONE
/PLOT SURVIVAL
/save Survival(survtoot).
Resources Elapsed Time 0:00:01.50

Survival

 Survival Analysis for TIME

                            Total        Number         Number          Percent
                                         Events        Censored        Censored

  TOOTH           1          1627            75           1552            95.39
  TOOTH           2          1513            49           1464            96.76
  TOOTH           3          2088            87           2001            95.83
  TOOTH           4          2169            78           2091            96.40
  TOOTH           5          2033            75           1958            96.31
  TOOTH           6          2075            81           1994            96.10
  TOOTH           7          2032            57           1975            97.19
  TOOTH           8           707             9            698            98.73

Overall                     14244           511          13733            96.41



* Create Excel file for plotting.

select if (failed=1).
sort cases by time tooth.

aggregate outfile=*
 /presorted
 /break time tooth
 /survtoot
  =first(survtoot)
 /n=n.

If (tooth=1) tooth1=survtoot.
If (tooth=2) tooth2=survtoot.
If (tooth=3) tooth3=survtoot.
If (tooth=4) tooth4=survtoot.
If (tooth=5) tooth5=survtoot.
If (tooth=6) tooth6=survtoot.
If (tooth=7) tooth7=survtoot.
If (tooth=8) tooth8=survtoot.

aggregate outfile=*
 /presorted
 /break time
 / tooth1 to tooth8
 = first(tooth1 to tooth8).

SAVE TRANSLATE OUTFILE='I:\Research Projects\longevity\early life 1935 control UL.xls'
  /TYPE=XLS /MAP /REPLACE /FIELDNAMES.

Data written to I:\Research Projects\longevity\early life 1935 control UL.xls.
9 variables and 252 cases written to range: SPSS.
Variable: TIME       Type: Number   Width:  8   Dec: 2
Variable: TOOTH1     Type: Number   Width:  8   Dec: 2
Variable: TOOTH2     Type: Number   Width:  8   Dec: 2
Variable: TOOTH3     Type: Number   Width:  8   Dec: 2
Variable: TOOTH4     Type: Number   Width:  8   Dec: 2
Variable: TOOTH5     Type: Number   Width:  8   Dec: 2
Variable: TOOTH6     Type: Number   Width:  8   Dec: 2
Variable: TOOTH7     Type: Number   Width:  8   Dec: 2
Variable: TOOTH8     Type: Number   Width:  8   Dec: 2









Get file='D:\pskl\RMatch1935y2001control.sav'.

select if (any(quadrant,'UR','AA')).
KM
  time  BY tooth  /STATUS=failed(1)
  /PRINT NONE
  /PLOT SURVIVAL
  /save Survival(survtoot).

Kaplan-Meier

Notes
Output Created 17-FEB-2003 17:50:40
Comments
Input Data D:\pskl\RMatch1935y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 14260
Syntax KM
time BY tooth /STATUS=failed(1)
/PRINT NONE
/PLOT SURVIVAL
/save Survival(survtoot).
Resources Elapsed Time 0:00:06.64

Survival

 Survival Analysis for TIME

                            Total        Number         Number          Percent
                                         Events        Censored        Censored

  TOOTH           1          1630            73           1557            95.52
  TOOTH           2          1519            56           1463            96.31
  TOOTH           3          2111            99           2012            95.31
  TOOTH           4          2162            73           2089            96.62
  TOOTH           5          2023            61           1962            96.98
  TOOTH           6          2062            66           1996            96.80
  TOOTH           7          2044            65           1979            96.82
  TOOTH           8           709             9            700            98.73

Overall                     14260           502          13758            96.48



* Create Excel file for plotting.

select if (failed=1).
sort cases by time tooth.

aggregate outfile=*
 /presorted
 /break time tooth
 /survtoot
  =first(survtoot)
 /n=n.

If (tooth=1) tooth1=survtoot.
If (tooth=2) tooth2=survtoot.
If (tooth=3) tooth3=survtoot.
If (tooth=4) tooth4=survtoot.
If (tooth=5) tooth5=survtoot.
If (tooth=6) tooth6=survtoot.
If (tooth=7) tooth7=survtoot.
If (tooth=8) tooth8=survtoot.

aggregate outfile=*
 /presorted
 /break time
 / tooth1 to tooth8
 = first(tooth1 to tooth8).

SAVE TRANSLATE OUTFILE='I:\Research Projects\longevity\early life 1935 control UR.xls'
  /TYPE=XLS /MAP /REPLACE /FIELDNAMES.

Data written to I:\Research Projects\longevity\early life 1935 control UR.xls.
9 variables and 249 cases written to range: SPSS.
Variable: TIME       Type: Number   Width:  8   Dec: 2
Variable: TOOTH1     Type: Number   Width:  8   Dec: 2
Variable: TOOTH2     Type: Number   Width:  8   Dec: 2
Variable: TOOTH3     Type: Number   Width:  8   Dec: 2
Variable: TOOTH4     Type: Number   Width:  8   Dec: 2
Variable: TOOTH5     Type: Number   Width:  8   Dec: 2
Variable: TOOTH6     Type: Number   Width:  8   Dec: 2
Variable: TOOTH7     Type: Number   Width:  8   Dec: 2
Variable: TOOTH8     Type: Number   Width:  8   Dec: 2